<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<script type="text/javascript">
	function validateForm(){
		var name = document.getElementById("empName");
		var sal = document.getElementById("empSalary");
		var addr = document.getElementById("empAddress");
		if((name.value == "") ||  (sal.value=="") || (addr.value == "")){
			alert("Please Enter all the fiedls");
			return false;
		}
	}
</script>
<form action="InsertServlet">

<label>Employee Details</label><br/>
	Name <input type="text" name="empName" id="empName"/><br/>
	Address <input type="text" name="empAddress" id="empAddress"/><br/>
	Salary <input type="text" name="empSalary" id="empAddress"/><br/>
	<input type="submit" onclick="return validateForm()" value="Add"/>
</form>
</body>
</html>